package com.swsc.solarverse.service.forward.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.swsc.solarverse.dao.entity.forward.ForwardCombinerBoxDataDO;
import com.swsc.solarverse.dao.mapper.forward.ForwardCombinerBoxDataMapper;
import com.swsc.solarverse.service.forward.IForwardCombinerBoxDataService;
import org.apache.commons.collections4.CollectionUtils;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author AutoGenerator
 * @since 2022-08-24
 */
@Service
public class ForwardCombinerBoxDataServiceImpl extends ServiceImpl<ForwardCombinerBoxDataMapper, ForwardCombinerBoxDataDO> implements IForwardCombinerBoxDataService {

    @Override
    public void insertOrUpdateBatch(List<ForwardCombinerBoxDataDO> list) {
        if(CollectionUtils.isNotEmpty(list)){
            baseMapper.insertOrUpdateBatch(list);
        }
    }
}
